var baseUrl = "http://localhost:80";
var platform = 'android'
try {
  var res = wx.getSystemInfoSync()
  console.log(res.platform)
  platform = res.platform == "ios" ? "ios" : "android"
} catch (e) {
  
}
module.exports =  {
  platform,
  loginUrl: `${baseUrl}/index/login`,
  registerUrl: `${baseUrl}/index/register`,
  getBannerListUrl: `${baseUrl}/index/getBannerList`,
  getThreeGoodsADInfoUrl: `${baseUrl}/index/getThreeGoodsADInfo`,
  getRecommendationUrl: `${baseUrl}/index/getRecommendation`,
  getClassifyoneUrl: `${baseUrl}/index/getClassifyone`,
  getClassifyTwoUrl: `${baseUrl}/index/getClassifyTwo`,
  getClassifyThreeUrl: `${baseUrl}/index/getClassifyThree`,
  getGoodsListUrl: `${baseUrl}/index/getGoodsList`,
  getGoodsDetailsUrl: `${baseUrl}/index/getGoodsDetails`,
  getGoodsSpecificationsUrl: `${baseUrl}/index/getGoodsSpecifications`,
  getMyCartInfoUrl: `${baseUrl}/index/getMyCartInfo`,
  addGoodsToCartUrl: `${baseUrl}/index/addGoodsToCart`,
  deleteGoodsForCartUrl: `${baseUrl}/index/deleteGoodsForCart`,
  editGoodsForCartUrl: `${baseUrl}/index/editGoodsForCart`,
  getMyShareUrl: `${baseUrl}/index/getMyShare`,
  personalDetailsUrl: `${baseUrl}/index/personalDetails`,
}

